package com.ljs.redisall.willow.service;




import com.ljs.redisall.willow.entity.Emp;

import java.util.List;

public interface EmpService {
    int deleteByPrimaryKey(Integer empid);

    int insert(Emp record);

    int insertSelective(Emp record);

    Emp selectByPrimaryKey(Integer empid);

    int updateByPrimaryKeySelective(Emp record);

    int updateByPrimaryKey(Emp record);

    /**
     * 根据手机和密码登录
     * @param phone
     * @param password
     * @return
     */
    Emp login(String phone, String password);
    List<Emp> selall();//用pagehelper去分页，所以这里不用参数
    //更新状态
    int updateById(int empid,int status);
    List<Emp> selBysearch( Emp emp);
}
